package com.example.dao;

import com.example.domain.Admin;
import org.apache.ibatis.annotations.*;
//管理员登录
public interface AdminMapper {
    @Select("SELECT * FROM admin WHERE email = #{email} AND password = #{password}")
    @Results(id = "adminMap", value = {
            @Result(id = true, column = "id", property = "id"),
            @Result(column = "username", property = "username"),
            @Result(column = "password", property = "password"),
            @Result(column = "email", property = "email"),
            @Result(column = "register_time", property = "registerTime")
    })
    Admin login(Admin admin);
}